import React, { Component } from "react";
import { HashRouter, Route, Redirect, Switch } from "react-router-dom";

import App from "../App";
import Pages from "../views/pages";
import toDoList from "../views/allItemCode/toDoList";
import bookTestApi from '../router/bookTestApi/index'

class router extends Component {
  render() {
    console.log(this.props);
    return (
      <div>
        <HashRouter>
          <Switch>
            <Route path="/App" component={App} />
            <Route path="/pages" component={Pages} />
            <Route path="/toDoList" component={toDoList} />
            <Route path="/bookTestApi" component={bookTestApi} />
            <Redirect from="/" to="/App" exact />
          </Switch>
        </HashRouter>
      </div>
    );
  }
}
export default router;
